﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011FD RID: 4605
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartAetherDivideStageBattleScRsp : IMessage<StartAetherDivideStageBattleScRsp>, IMessage, IEquatable<StartAetherDivideStageBattleScRsp>, IDeepCloneable<StartAetherDivideStageBattleScRsp>, IBufferMessage
	{
		// Token: 0x17003A55 RID: 14933
		// (get) Token: 0x0600CE57 RID: 52823 RVA: 0x0022BD3F File Offset: 0x00229F3F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartAetherDivideStageBattleScRsp> Parser
		{
			get
			{
				return StartAetherDivideStageBattleScRsp._parser;
			}
		}

		// Token: 0x17003A56 RID: 14934
		// (get) Token: 0x0600CE58 RID: 52824 RVA: 0x0022BD46 File Offset: 0x00229F46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartAetherDivideStageBattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A57 RID: 14935
		// (get) Token: 0x0600CE59 RID: 52825 RVA: 0x0022BD58 File Offset: 0x00229F58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartAetherDivideStageBattleScRsp.Descriptor;
			}
		}

		// Token: 0x0600CE5A RID: 52826 RVA: 0x0022BD5F File Offset: 0x00229F5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideStageBattleScRsp()
		{
		}

		// Token: 0x0600CE5B RID: 52827 RVA: 0x0022BD68 File Offset: 0x00229F68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideStageBattleScRsp(StartAetherDivideStageBattleScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CE5C RID: 52828 RVA: 0x0022BDB4 File Offset: 0x00229FB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartAetherDivideStageBattleScRsp Clone()
		{
			return new StartAetherDivideStageBattleScRsp(this);
		}

		// Token: 0x17003A58 RID: 14936
		// (get) Token: 0x0600CE5D RID: 52829 RVA: 0x0022BDBC File Offset: 0x00229FBC
		// (set) Token: 0x0600CE5E RID: 52830 RVA: 0x0022BDC4 File Offset: 0x00229FC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003A59 RID: 14937
		// (get) Token: 0x0600CE5F RID: 52831 RVA: 0x0022BDCD File Offset: 0x00229FCD
		// (set) Token: 0x0600CE60 RID: 52832 RVA: 0x0022BDD5 File Offset: 0x00229FD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AetherDivideBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x0600CE61 RID: 52833 RVA: 0x0022BDDE File Offset: 0x00229FDE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartAetherDivideStageBattleScRsp);
		}

		// Token: 0x0600CE62 RID: 52834 RVA: 0x0022BDEC File Offset: 0x00229FEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartAetherDivideStageBattleScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CE63 RID: 52835 RVA: 0x0022BE3C File Offset: 0x0022A03C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CE64 RID: 52836 RVA: 0x0022BE91 File Offset: 0x0022A091
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CE65 RID: 52837 RVA: 0x0022BE99 File Offset: 0x0022A099
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CE66 RID: 52838 RVA: 0x0022BEA4 File Offset: 0x0022A0A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CE67 RID: 52839 RVA: 0x0022BF00 File Offset: 0x0022A100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CE68 RID: 52840 RVA: 0x0022BF58 File Offset: 0x0022A158
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartAetherDivideStageBattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new AetherDivideBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CE69 RID: 52841 RVA: 0x0022BFC0 File Offset: 0x0022A1C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CE6A RID: 52842 RVA: 0x0022BFCC File Offset: 0x0022A1CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new AetherDivideBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040052C3 RID: 21187
		private static readonly MessageParser<StartAetherDivideStageBattleScRsp> _parser = new MessageParser<StartAetherDivideStageBattleScRsp>(() => new StartAetherDivideStageBattleScRsp());

		// Token: 0x040052C4 RID: 21188
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052C5 RID: 21189
		public const int RetcodeFieldNumber = 7;

		// Token: 0x040052C6 RID: 21190
		private uint retcode_;

		// Token: 0x040052C7 RID: 21191
		public const int BattleInfoFieldNumber = 15;

		// Token: 0x040052C8 RID: 21192
		private AetherDivideBattleInfo battleInfo_;
	}
}
